package com.aerfazhe.order.mapper;

import com.aerfazhe.order.pojo.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author：wk
 * @Slogan：无论风雨，和自己一决胜负吧
 * @Create：2022/7/21/16:18
 * @Description：下单服务数据持久化
 * @Version：1.0
 */
public interface OrderMapper2 {

    @Insert("insert into `order` (product_id,total_amount,status) values (#{productId},#{totalAmount},#{status}) ")
    int saveOrder(Order order);

}
